package com.qimu.saiyou;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 主类（项目启动入口）
 *
 *@author: FeiXiang
 * 
 */
@MapperScan("com.qimu.saiyou.mapper")
//•@MapperScan("com.yupi.springbootinit.mapper")：这是 MyBatis 框架的注解，用于扫描指定包下的 Mapper 接口，将其注册为 Spring 的 Bean，并提供给 MyBatis 进行数据库访问操作。
@EnableScheduling
@SpringBootApplication
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
public class MainApplication {

    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class, args);
    }

}
